
<?php
$acount = (int)$conf->a['articles-count-digradio'];
$bcount = (int)$conf->a['blogs-count-digradio'];
$rcount = (int)$conf->a['reviews-count-digradio'];
$max_count = max($acount,$bcount,$rcount);
$max_height = ($max_count*85)+75;
?>
<div class='c-box-300 c-box article dotted' id='article-home' style="height:<?php echo $max_height?>px !important">
      	<h6>Features<br/>
			<span>Everything cranked up to 11</span>
		</h6>
      	<?php
         
            	$items=0;
               foreach($posts as $x)
               {
               if($x['post_type']=='article' && $x['w']<=$acount){	
					?>
					
					
						<li  class='article-image' id="article-image-<?php echo $x['id'];?>">	
            			<a class='article-image-holder' href='article/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
            			<img height="60" width ="60" src="<?php echo ap($x['thumb']);?>" ></a>
							<span class='ptitle'><a href='article/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
							<?PHP echo $x['title'] ?></a></span>
							<?PHP
						     	$paragraph = explode (' ', $x['secondary']);
							$paragraph = array_slice ($paragraph, 0, 25);
							$paragraph = implode (' ', $paragraph);
						    	echo $paragraph;?>
						</li>					
					<?php               
						}
               }
         ?>
          <li class="more-galleries">
          	<a class="mgalleries" href="features/<?php echo $conf->qm[1]; ?>">MORE FEATURES</a>
          </li>
      </div>
    
	
       <div class='c-box-300 c-box review dotted' id='article-home' style="height:<?php echo $max_height?>px !important">
      	<h6>Reviews<br/>
		<span>Our verdict on the latest rock releases</span>
		</h6>
		
      	<?php
         
            	$items=0;
               foreach($posts as $x)
               {
               if($x['post_type']=='review' && $x['w']<=$rcount){	
					?>
					
						<li  class='article-image' id="article-image-<?php echo $x['id'];?>">	
            			<a class='article-image-holder' href='review/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
            			<img height="60" width ="60" src="<?php echo ap($x['thumb']);?>" ></a>
							<span class='ptitle'><a href='review/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
							<?PHP echo $x['title'] ?></a></span>
							<?PHP
						     	$paragraph = explode (' ', $x['secondary']);
							$paragraph = array_slice ($paragraph, 0, 25);
							$paragraph = implode (' ', $paragraph);
						    	echo $paragraph;?>
						</li>					
					<?php               
						}
               }
         ?>
          <li class="more-galleries">
          	<a class="mgalleries" href="reviewview/<?php echo $conf->qm[1]; ?>">MORE REVIEWS</a>
          </li>
      </div>
	<div class='c-box-300 c-box blog' id='article-home' style="height:<?php echo $max_height?>px !important">
      	<h6>Blogs<br/>
		<span>What's inside our heads</span>
		</h6>
      	<?php
         
            	$items=0;
               foreach($posts as $x)
               {
               if($x['post_type']=='blog' && $x['w']<=$bcount){	
					?>
					
						<li  class='article-image' id="article-image-<?php echo $x['id'];?>">	
            			<a class='article-image-holder' href='blog/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
            			<img height="60" width ="60" src="<?php echo ap($x['thumb']);?>" ></a>
							<span class='ptitle'><a href='blog/<?PHP echo $x["id"];?>/<?PHP echo csq($x["title"]);?>'>
							<?PHP echo $x['title'] ?></a></span>
							<?PHP
						     	$paragraph = explode (' ', $x['secondary']);
							$paragraph = array_slice ($paragraph, 0, 25);
							$paragraph = implode (' ', $paragraph);
						    	echo $paragraph;?>
						</li>					
					<?php               
						}
               }
         ?>
          <li class="more-galleries">
          	<a class="mgalleries" href="blogview/<?php echo $conf->qm[1]; ?>">MORE BLOGS</a>
          </li>
      </div>
      <hr class="divider">
